motorcycles = ['honda', 'yamaha', 'suzuiki']
print(motorcycles)
arr = motorcycles
motorcycles[0] = 'ducati'

print(motorcycles)
print('arr', arr)

# 1．在列表末尾添加元素
print(motorcycles)
motorcycles.append('jtr')
print(motorcycles)

# 2．在列表中插入元素
motorcycles.insert(0, 'lost')
print(motorcycles, 16)
print(arr, 17)

# 1．使用del语句删除元素
del motorcycles[0]
print(motorcycles)
# 2．使用方法pop()删除元素
print(motorcycles, 'pop')
last = motorcycles.pop()
print(last)
print(motorcycles)

# 3．弹出列表中任何位置处的元素
print('pop anywhere', motorcycles)
motorcycles.pop(1)
print(motorcycles)

# 4．根据值删除元素
print('remove content', motorcycles)
motorcycles.append('ducati')
motorcycles.remove('ducati')
print(motorcycles)